import constants from '@/commons/constants';
const moduleCode = constants.MODULE_SYS_CODE;

export default [
    {
        path: '/setmall',
        redirect: '/setmall/customer'
    },
    {
        path: '/setmall/customer',
        component: () => import('@/views/sys/setmall/customer/index.vue'),
        meta: {
            title: '客服设置',
            code: 'setmall_customer',
            moduleCode
        }
    },
    {
        path: '/setmall/order',
        component: () => import('@/views/sys/setmall/order/index.vue'),
        meta: {
            title: '订单设置',
            permAuth: false,
            code: 'setmall_order'
        }
    },
    {
        path: '/setmall/notice',
        component: () => import('@/views/sys/setmall/notice/index.vue'),
        meta: {
            title: '消息通知设置',
            code: 'setmall_notice'
        }
    },
    {
        path: '/setmall/trading',
        component: () => import('@/views/sys/setmall/trading/index.vue'),
        meta: {
            title: '交易设置',
            code: 'trading_setting:view'
        }
    }
];
